﻿
using Duende.IdentityServer.Stores;

namespace Service.Auth.Api.Extensions
{
    /// <summary>
    /// 
    /// </summary>
    public static class IdentityServerBuilderExtensions
    {
        public static IIdentityServerBuilder AddSqlSuagerStore(this IIdentityServerBuilder builder)
        {
            builder.Services.AddTransient<IClientStore, MysqlClientStore>();
            builder.Services.AddTransient<IResourceStore, MysqlResourceStore>();
            builder.Services.AddTransient<IPersistedGrantStore, MysqlPersistedGrantStore>();
            return builder;
        }
    }
}
